#define _CRT_SECURE_NO_WARNINGS 1

#include<iostream>
#include "list.h"
using namespace kia;
using namespace std;

int main()
{
	list<int> l1;
	l1.push_back(1);
	l1.push_back(2);
	l1.push_back(3);
	l1.push_back(4);
	/*for (auto e : l1)
	{
		cout << e << ' ';
	}
	cout << endl;*/
	/*auto it = --l1.end();
	while (it != l1.end())
	{
		cout << *it << ' ';
		--it;
	}
	cout << endl;*/
	/*auto it = l1.begin();
	cout << *it << endl;*/
	//cout << *(++it) << endl;
	/*cout << *(it++) << endl;
	cout << *it << endl;*/
	/*it++; it++;
	cout << *it << endl;
	cout << *(--it) << endl;
	cout << *(it--) << endl;
	cout << *it << endl;*/
	/*const list<int> l2(6,6);*/
	//const list<int> l2(l1.begin(), l1.end());
	//const list<int> l2(l1);
	//const list<int> l2(l1);
	//cout << l2.size() << endl;
	//cout << l2.front() << endl;
	//l2 = l1;
	list<int> l2;
	l2.push_front(1);
	l2.push_front(2);
	l2.push_front(3);
	l2.push_front(4);
	/*for (auto e : l2)
	{
		cout << e << ' ';
	}
	cout << endl;*/
	/*l2.pop_front();
	l2.pop_front();
	l2.pop_front();
	l2.pop_front();
	l2.pop_front();*/
	/*l2.pop_back();
	l2.pop_back();
	l2.pop_back();
	l2.pop_back();
	l2.pop_back();*/
	/*for (auto e : l2)
	{
		cout << e << ' ';
	}
	cout << endl;*/
	/*cout << l2.front() << endl;
	cout << l2.back() << endl;*/
	//cout << l2.size() << endl;
	//cout << l2.back() << endl;
	/*l1.swap(l2);
	for (auto e : l1)
	{
		cout << e << ' ';
	}
	cout << endl;
	for (auto e : l2)
	{
		cout << e << ' ';
	}
	cout << endl;*/
	/*for (auto e : l1)
	{
		cout << e<< ' ';
	}
	cout <<endl;
	auto rit = l1.rbegin();
	while (rit != l1.rend())
	{
		cout << *rit <<' ';
		++rit;
	}
	cout <<endl;
	rit = l1.rbegin();
	cout << *rit << endl;
	cout << *(rit++) << endl;
	cout << *rit << endl;
	cout << *(rit--) << endl;
	cout << *(rit) << endl;*/
	return 0;
}